package edu.uoc.tdp.pac4.common;

import java.rmi.RemoteException;
import java.util.List;

import edu.uoc.tdp.pac4.beans.*;

/**
 * T�cniques de Desenvolupament de Programari Universitat Oberta de Catalunya
 * (UOC)
 * 
 * @author GRUP1A
 * @version 1.0
 * 
 */

public interface MantenimentInterface extends java.rmi.Remote {

	public abstract List<Usuari> listUser() throws RemoteException;
	public abstract List<Usuari> findUsers(Usuari usuariFilter) throws RemoteException;
	public abstract Usuari findUserById(String identificador) throws RemoteException;
	public abstract Usuari createUser(Usuari usuari) throws RemoteException;
	public abstract void updateUser(Usuari usuari) throws RemoteException;


	public abstract List<Aula> listClassroom() throws RemoteException;
	public abstract List<Aula> findClassrooms(Aula classroomFilter) throws RemoteException;
	public abstract Aula findClassroomById(Integer id) throws RemoteException;
	public abstract Aula createClassroom(Aula classroom) throws RemoteException;
	public abstract void updateClassroom(Aula classroom) throws RemoteException;

	
	public abstract List<Course> listCourse() throws RemoteException;
	public abstract List<Course> findCourses(Course courseFilter) throws RemoteException;
	public abstract Course findCourseById(Integer id) throws RemoteException;
	public abstract Course createCourse(Course course) throws RemoteException;
	public abstract void updateCourse(Course course) throws RemoteException;
	

	

	public Usuari findStudent(String nif) throws RemoteException;
}
